package com.anyi.gulimall.product.feign;

import com.anyi.gulimall.common.es.SkuEsModel;
import com.anyi.gulimall.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 安逸i
 * @version 1.0
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {

    @PostMapping("/elastic/up")
    R productStatusUp(@RequestBody List<SkuEsModel> collect);
}
